package com.lyz.ehcachedome.entity;

import java.io.Serializable;
import java.util.Objects;

public class User implements Serializable {
    private String userId;
    private String name;

    public User() {}

    public User(String userId, String name) {
        this.userId = userId;
        this.name = name;
    }

    public int hashCode() {
        int result = Objects.hash(getName(),getUserId());
        return result;
    }
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId='" + userId + '\'' +
                ", name='" + name + '\'' +
                '}';
    }
}
